<%@page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>

<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<html lang="en">

<body>
	<table>
		<tr>
			<td>用户</td>
			<td><input type="text" name="username" ></td>
		</tr>
	</table>
	<br>
	<table>
		<thead>
			<tr>
				<td>标题</td>
				<td>内容</td>
				<td>作者</td>
				<td></td>
			</tr>
		</thead>
	<c:forEach items="${searchResults }" var="blog">
		<tr>
			<td>${blog.title }</td>
			<td>${blog.content }</td>
			<td>${blog.author }</td>
			<td> <a href="<%=request.getContextPath() %>/blog/search/${blog.id}">view</a> </td>
		</tr>
	</c:forEach>
	</table>
</body>

</html>
